package com.rombo.hiberdemo.po;

/**
 * Create by Yet on 2016/12/21
 **/
public class OrgaUserPO {
    private String uuid;
    private String orgaid;
    private String userid;
    private String mtype;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getOrgaid() {
        return orgaid;
    }

    public void setOrgaid(String orgaid) {
        this.orgaid = orgaid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getMtype() {
        return mtype;
    }

    public void setMtype(String mtype) {
        this.mtype = mtype;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OrgaUserPO that = (OrgaUserPO) o;

        if (uuid != null ? !uuid.equals(that.uuid) : that.uuid != null) return false;
        if (orgaid != null ? !orgaid.equals(that.orgaid) : that.orgaid != null) return false;
        if (userid != null ? !userid.equals(that.userid) : that.userid != null) return false;
        if (mtype != null ? !mtype.equals(that.mtype) : that.mtype != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = uuid != null ? uuid.hashCode() : 0;
        result = 31 * result + (orgaid != null ? orgaid.hashCode() : 0);
        result = 31 * result + (userid != null ? userid.hashCode() : 0);
        result = 31 * result + (mtype != null ? mtype.hashCode() : 0);
        return result;
    }
}